package com.sky.sd.system.bean.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sky.sd.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author 弓振
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sky_dic")
@ApiModel(value = "Dic对象", description = "数据字典")
public class Dic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "父级数据字典，0代表顶级菜单")
    private String parentId;

    @ApiModelProperty(value = "字典编码")
    private String code;

    @ApiModelProperty(value = "字典名称")
    private String name;

    @ApiModelProperty(value = "启用状态, 1：启用；0：禁用")
    private Integer enabled;

    @ApiModelProperty(value = "数据字典类型；0：系统数据字典（系统类不能删除）；1：业务数据字典")
    private Integer type;

    @ApiModelProperty(value = "默认项（数据子项可以设置默认项，有且只有一个）, 1：默认；0：不是默认")
    private Integer isDefault;

    @ApiModelProperty(value = "部门顺序， 由小到大")
    private Integer sort;

    @ApiModelProperty(value = "数据字典描述")
    private String remark;


}
